wayland: Replace deprecated functions
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 9 Dec 2015 11:55:39 +0000 (12:55 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 14 Dec 2015 23:40:21 +0000 (00:40 +0100)
We can just gdk_seat_ungrab() here.

https://bugzilla.gnome.org/show_bug.cgi?id=759309

gdk/wayland/gdkwindow-wayland.c

index 9354c0d350890dad0665e264d581ad5c195051f9..0c56c2e5df859b5a582d672dc5f066020db37c6d 100644 (file)
@@ -2224,7 +2224,7 @@ gdk_wayland_window_begin_resize_drag (GdkWindow     *window,
   /* This is needed since Wayland will absorb all the pointer events after the
    * above function - FIXME: Is this always safe..?
    */
-  gdk_device_ungrab (device, timestamp);
+  gdk_seat_ungrab (gdk_device_get_seat (device));
 }
 
 static void
@@ -2259,7 +2259,7 @@ gdk_wayland_window_begin_move_drag (GdkWindow *window,
   /* This is needed since Wayland will absorb all the pointer events after the
    * above function - FIXME: Is this always safe..?
    */
-  gdk_device_ungrab (device, timestamp);
+  gdk_seat_ungrab (gdk_device_get_seat (device));
 }
 
 static void